//---------------------------------------------------------------------------

#ifndef ITOG_PERH
#define ITOG_PERH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include <DB.hpp>
#include <DBCtrls.hpp>
#include "cxCalendar.hpp"
#include "cxDropDownEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxTextEdit.hpp"
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrITOG_PER : public TForm
{
__published:	// IDE-managed Components
	TcxGroupBox *gbPO_ABON;
	TEdit *edNOM;
	TLabel *Label1;
	TDBText *labITOG_SUM;
	TcxGroupBox *gbPO_ABON_DAT;
	TLabel *Label2;
	TDBText *labITOG_SUM1;
	TEdit *edNOM1;
	TLabel *Label3;
	TcxDateEdit *dtpDAT;
	TcxGroupBox *gbPO_DATE;
	TDBText *labSUM_PO_DAT;
	TLabel *Label5;
	TcxDateEdit *dtpDAT1;
	TcxGroupBox *gbPO_KOD_OP;
	TDBText *labSUM_KOD_OP;
	TLabel *Label4;
	TEdit *edKOD_OP;
	TIBCQuery *dsetITOG;
	TIBCDataSource *dsITOG;
	void __fastcall FormKeyPress(TObject *Sender, char &Key);
	void __fastcall edNOMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall edNOM1KeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dtpDATKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall FormActivate(TObject *Sender);
	void __fastcall dtpDAT1KeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall edKOD_OPKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall FormShow(TObject *Sender);
private:	// User declarations
public:		// User declarations
int Stat,NOM;
	__fastcall TfrITOG_PER(TComponent* Owner);
	void __fastcall TfrITOG_PER::Obnovi();
	void __fastcall TfrITOG_PER::Visible();
	void __fastcall TfrITOG_PER::ITOG_SUM();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrITOG_PER *frITOG_PER;
//---------------------------------------------------------------------------
#endif
